/*
 * 创建时间：2015年7月27日
 */
package com.tuanzi.loan.workflow.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

import lombok.Data;

/**
 * @author Ray
 * @date 2018/01/17
 */
@Data
@Entity
@Table(name = "ACT_HI_TASKINST")
public class HistoryTask implements Serializable {

	private static final long serialVersionUID = 8318031298319074575L;

	@Id
	@Column(name = "ID_")
	private String id;

	@Column(name = "REV_")
	private Integer rev;

	@Column(name = "EXECUTION_ID_")
	private String executionId;

	@Column(name = "PROC_INST_ID_")
	private String procInstId;

	@Column(name = "PROC_DEF_ID_")
	private String procDefId;

	@Column(name = "NAME_")
	private String name;

	@Column(name = "PARENT_TASK_ID_")
	private String parentTaskId;

	@Column(name = "DESCRIPTION_")
	private String description;

	@Column(name = "TASK_DEF_KEY_")
	private String taskDefKey;

	@Column(name = "OWNER_")
	private String owner;

	@Column(name = "ASSIGNEE_")
	private String assignee;

	@Column(name = "DELEGATION_")
	private int delegation;

	@Column(name = "PRIORITY_")
	private Integer priority;

	@Column(name = "CREATE_TIME_")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	@Column(name = "DUE_DATE_")
	@Temporal(TemporalType.TIMESTAMP)
	private Date dueDate;

	private String category;

	@Column(name = "SUSPENSION_STATE_")
	private Integer suspensionState;

	@Column(name = "TENANT_ID_")
	private String tenantId;

	@Column(name = "FORM_KEY_")
	private String formKey;

	@Column(name = "DELETE_REASON_")
	private String deleteReason;

}
